.class Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;
.super Ljava/lang/Object;
.source "NiceAppDetailActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->onDeleteComment(Lcom/brixd/niceapp/model/DetailModel;Lcom/brixd/niceapp/model/CommentModel;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

.field final synthetic val$detailModel:Lcom/brixd/niceapp/model/DetailModel;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppDetailActivity;Lcom/brixd/niceapp/model/DetailModel;)V
    .registers 3
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    .prologue
    .line 380
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->val$detailModel:Lcom/brixd/niceapp/model/DetailModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 384
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    const v1, 0x7f0c0058

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(Ljava/lang/String;)V

    .line 385
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 380
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 7
    .param p1, "arg0"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 389
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->mGroup:Ljava/util/ArrayList;

    sget-object v3, Lcom/brixd/niceapp/model/DetailModel$DetailGroupType;->TYPE_GROUP_COMMENT:Lcom/brixd/niceapp/model/DetailModel$DetailGroupType;

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v0

    .line 390
    .local v0, "commentGroupIndex":I
    if-ltz v0, :cond_54

    .line 391
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->mChild:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/ArrayList;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->val$detailModel:Lcom/brixd/niceapp/model/DetailModel;

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    .line 392
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->mChild:Ljava/util/ArrayList;

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-nez v2, :cond_34

    .line 393
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->mGroup:Ljava/util/ArrayList;

    sget-object v3, Lcom/brixd/niceapp/model/DetailModel$DetailGroupType;->TYPE_GROUP_COMMENT:Lcom/brixd/niceapp/model/DetailModel$DetailGroupType;

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    .line 396
    :cond_34
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->mAdapter:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->notifyDataSetChanged()V

    .line 398
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getCommentTimes()I

    move-result v2

    add-int/lit8 v1, v2, -0x1

    .line 399
    .local v1, "replayTimes":I
    if-gez v1, :cond_48

    .line 400
    const/4 v1, 0x0

    .line 402
    :cond_48
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2, v1}, Lcom/brixd/niceapp/model/BaseAppModel;->setCommentTimes(I)V

    .line 403
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    const/4 v3, 0x1

    iput-boolean v3, v2, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->mIsDirty:Z

    .line 406
    .end local v1    # "replayTimes":I
    :cond_54
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppDetailActivity$6;->this$0:Lcom/brixd/niceapp/activity/NiceAppDetailActivity;

    const v3, 0x7f0c0059

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/activity/NiceAppDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/util/ToastUtils;->show(Ljava/lang/String;)V

    .line 407
    return-void
.end method
